package windowUnits;

import java.util.Calendar;
import java.util.Vector;

import javax.swing.table.DefaultTableModel;

import windows.MainAppW;

public class MyTableModel extends DefaultTableModel {
	
	private Calendar cal = Calendar.getInstance();
	public final static Object [] columnIdentifiers = new Object [] {
			MainAppW.getMsgBundle().getByName("d1_s"),
			MainAppW.getMsgBundle().getByName("d2_s"),
			MainAppW.getMsgBundle().getByName("d3_s"),
			MainAppW.getMsgBundle().getByName("d4_s"),
			MainAppW.getMsgBundle().getByName("d5_s"),
			MainAppW.getMsgBundle().getByName("d6_s"),
			MainAppW.getMsgBundle().getByName("d7_s")
	};
	
	public MyTableModel(int rowCount, int columnCount) {
		super(rowCount, columnCount);
		// TODO Auto-generated constructor stub
	}

	public MyTableModel(Object[] columnNames, int rowCount) {
		super(columnNames, rowCount);
		// TODO Auto-generated constructor stub
	}

	public MyTableModel(Object[][] data, Object[] columnNames) {
		super(data, columnNames);
		// TODO Auto-generated constructor stub
	}

	public MyTableModel(Vector columnNames, int rowCount) {
		super(columnNames, rowCount);
		// TODO Auto-generated constructor stub
	}

	public MyTableModel(Vector data, Vector columnNames) {
		super(data, columnNames);
		// TODO Auto-generated constructor stub
	}

	public MyTableModel(){
		super(columnIdentifiers, 5);
		//setColumnIdentifiers(columnIdentifiers);
	}
	
	public void setTableData(Object [][] data){
		setDataVector(data, columnIdentifiers);
	}

}
